package com.itqf.mapper;

import com.itqf.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.Set;

/**
 * 作者:高少东
 * 项目名:  product_gsd
 * 时间: 2019/12/18 22:15
 * 描述:
 */

public interface UserMapper {

   String  queryAccount(String uAccount);

   int  registAccount(User user);

   User loginAccount(String account);

    Set<String> selectRoleByAccount(String uAccount);

    Set<String> selectPermissionByRole(Set<String> roles);

    String querySalt(Integer uId);

    int alterPassword(@Param("uId") Integer uId, @Param("password") String password);


}
